package com.wdb007.venus.web.api.book.model;

import java.io.Serializable;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.wdb007.venus.web.api.Jsonable;

public class Book  implements Jsonable , Serializable{

	private static final long serialVersionUID = 8003999419597375807L;

	private String isbn ;
	
	private String bookname ;
	
	private String imgurl ;
	
	public Book() {}
	
	public Book(String ibsn, String bookname, String imgurl) {
		super();
		this.isbn = ibsn;
		this.bookname = bookname;
		this.imgurl = imgurl;
	}

	public String getIsbn() {
		return isbn;
	}

	public void setIsbn(String ibsn) {
		this.isbn = ibsn;
	}

	public String getBookname() {
		return bookname;
	}

	public void setBookname(String bookname) {
		this.bookname = bookname;
	}

	public String getImgurl() {
		return imgurl;
	}

	public void setImgurl(String imgurl) {
		this.imgurl = imgurl;
	}

	@Override
	public JSONObject toJson() {
		return (JSONObject) JSON.toJSON(this);
	}
}
